import styled from "styled-components";


export const RoomItemWrapper = styled.div`
    cursor: pointer;
    flex-shrink: 0;
    width: ${props => props.width};
    box-sizing: border-box;
    padding: 8px;
    .inner {
        width: 100%;
    }
    .occupancy {
        position: relative;
        box-sizing: border-box;
        padding: 66.66% 0 0;
        border-radius: 3px;
        overflow: hidden;
        img {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .slider {
        position: relative;
        cursor: pointer;

        &:hover {
            .control{
                display: flex;
            }
        }

        .control {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            color: #fff;
            display: none;
            z-index: 1;
            justify-content: space-between;
            .btn {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 83px;
                height: 100%;
                background: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.25) 100%);

                &.right {
                background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
                }
            }
        }
        .indicator{
            position: absolute;
            bottom: 10px;
            margin: 0 auto;
            left: 0;
            right: 0;
            width: 30%;
            align-items: center;
            justify-content: center;
            z-index: 9;
            box-sizing: border-box;
            .dot-item {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 14.29%;
                .dot {
                    width: 6px;
                    height: 6px;
                    background-color: #fff;
                    border-radius: 50%;

                    &.active {
                        width: 8px;
                        height: 8px;
                    }
                }
            }
        }
  }
    .desc {
        margin: 10px 0 5px;
        font-size: 12px;
        font-weight: 700;
        color: ${props => props.color};
    }
    .name {
        font-size: 16px;
        font-weight: 700;
        overflow: hidden;
        &:hover{
            text-decoration: underline;
        }
        /* white-space: nowrap; */
        text-overflow: ellipsis;
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
    }
    .bottom {
        font-size: 12px;
        font-weight: 600;
        color: ${props => props.theme.text.primaryColor};
        .MuiRating-decimal {
            margin-right: -2px;
        }
        .count{
            margin-left: 5px;
        }
    }
`